package com.ruoyi.module.version.domain;

import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 文件上传记录对象 sz_versions_upload_record
 * 
 * @author ${author}
 * @date 2023-10-13
 */
public class SzVersionsUploadRecord extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 主键 */
    private Long id;

    /** 文件名 */
    @Excel(name = "文件名")
    private String name;

    /** 后缀名 */
    @Excel(name = "后缀名")
    private String suffix;

    /** 本地路径 */
    @Excel(name = "本地路径")
    private String localUrl;

    /** 客户端访问路径 */
    @Excel(name = "客户端访问路径")
    private String visitUrl;

    /** 文件大小，单位bit */
    @Excel(name = "文件大小，单位bit")
    private Long size;

    /** 上传文件人id */
    @Excel(name = "上传文件人id")
    private Long userId;

    /** 上传文件人 */
    @Excel(name = "上传文件人")
    private String userName;

    /** 文件描述 */
    @Excel(name = "文件描述")
    private String fileDetail;

    /** 状态 */
    @Excel(name = "状态")
    private String state;

    /** 服务器文件名 */
    @Excel(name = "服务器文件名")
    private String serverFileName;

    /** 文件标签 */
    @Excel(name = "文件标签")
    private String tag;

    /** 文件日期路径 */
    @Excel(name = "文件日期路径")
    private String filePath;

    public void setId(Long id) 
    {
        this.id = id;
    }

    public Long getId() 
    {
        return id;
    }
    public void setName(String name) 
    {
        this.name = name;
    }

    public String getName() 
    {
        return name;
    }
    public void setSuffix(String suffix) 
    {
        this.suffix = suffix;
    }

    public String getSuffix() 
    {
        return suffix;
    }
    public void setLocalUrl(String localUrl) 
    {
        this.localUrl = localUrl;
    }

    public String getLocalUrl() 
    {
        return localUrl;
    }
    public void setVisitUrl(String visitUrl) 
    {
        this.visitUrl = visitUrl;
    }

    public String getVisitUrl() 
    {
        return visitUrl;
    }
    public void setSize(Long size) 
    {
        this.size = size;
    }

    public Long getSize() 
    {
        return size;
    }
    public void setUserId(Long userId) 
    {
        this.userId = userId;
    }

    public Long getUserId() 
    {
        return userId;
    }
    public void setUserName(String userName) 
    {
        this.userName = userName;
    }

    public String getUserName() 
    {
        return userName;
    }
    public void setFileDetail(String fileDetail) 
    {
        this.fileDetail = fileDetail;
    }

    public String getFileDetail() 
    {
        return fileDetail;
    }
    public void setState(String state) 
    {
        this.state = state;
    }

    public String getState() 
    {
        return state;
    }
    public void setServerFileName(String serverFileName) 
    {
        this.serverFileName = serverFileName;
    }

    public String getServerFileName() 
    {
        return serverFileName;
    }
    public void setTag(String tag) 
    {
        this.tag = tag;
    }

    public String getTag() 
    {
        return tag;
    }
    public void setFilePath(String filePath) 
    {
        this.filePath = filePath;
    }

    public String getFilePath() 
    {
        return filePath;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("name", getName())
            .append("suffix", getSuffix())
            .append("localUrl", getLocalUrl())
            .append("visitUrl", getVisitUrl())
            .append("size", getSize())
            .append("userId", getUserId())
            .append("userName", getUserName())
            .append("fileDetail", getFileDetail())
            .append("state", getState())
            .append("createBy", getCreateBy())
            .append("createTime", getCreateTime())
            .append("updateBy", getUpdateBy())
            .append("updateTime", getUpdateTime())
            .append("serverFileName", getServerFileName())
            .append("tag", getTag())
            .append("filePath", getFilePath())
            .toString();
    }
}
